<?php
class Core_Model_DbTable_Users extends Zend_Db_Table_Abstract {
    protected $_name = 'users';
    protected $_rowClass = 'Core_Model_User';
    
    public function getLatestAccessToken() {
        $query = $this->select()
                      ->from($this->_name, 'extended_access_token')
                      ->order('updated_time DESC')
                      ->limit(1);
        $query_result = $this->fetchRow($query);
        return $query_result->extended_access_token;
    }
}
?>
